﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddOrdemTarifas.aspx.cs" Inherits="NewTierra.Pages.AddOrdemTarifas" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">

    <link rel="shortcut icon" href="../../images/Icones/favicon.ico" type="image/x-icon" />

    <link href="../../Styles/jquery_notification.css" rel="stylesheet" />
     <script type="text/javascript" src="../../Scripts/jquery_notification_v.1.js"></script>

    <title></title>
    <link href="../../Styles/EstiloGeral.css" rel="stylesheet" />

    <style type="text/css">
        #AddOrdemTarifas
        {
            height: 223px;
            width: 260px;
        }

        .GridCategorias
        {
            position: relative;
            margin-left: auto;
            margin-right: auto;
            width: 193px;
            height: 214px;
            overflow-x: hidden;
            overflow-y: auto;
            top: 0px;
            left: 0px;
        }
    </style>

    <script type="text/javascript">
        function showAutoCloseMessage(MsgsExc) {
            showNotification({
                message: MsgsExc,
                autoClose: true,
                type: "success",
                duration: 3
            });
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">

        <div id="AddOrdemTarifas">

            <div class="GridCategorias">

                <asp:GridView ID="GridCategorias" ShowFooter="true" AutoGenerateColumns="false" CssClass="mGrid" runat="server" Height="81px">
                    <AlternatingRowStyle CssClass="alt"></AlternatingRowStyle>
                    <Columns>

                        <asp:BoundField DataField="Tarif_categoria_id" HeaderText="CategID" SortExpression="Tarif_categoria_id" FooterStyle-CssClass="invisible" HeaderStyle-CssClass="invisible" ItemStyle-CssClass="invisible" />

                        <asp:BoundField DataField="Tarif_categoria_nome" HeaderText="Nome"  SortExpression="Tarif_categoria_nome"/>

                        <asp:TemplateField HeaderText="Ordem">
                            <ItemTemplate>

                                <asp:TextBox ID="txtOrdem" runat="server" Width="30px" MaxLength="2" Text='<%# Eval("S_merc_tarif_ordem") %>'/>

                            </ItemTemplate>

                            <FooterTemplate>
                                <asp:Button ID="btnSalvarTarifas" runat="server" OnCommand="btnSalvarTarifas_Command" Text="Salvar" />
                            </FooterTemplate>
                        </asp:TemplateField>

                    </Columns>
                    <PagerStyle CssClass="pgr"></PagerStyle>
                </asp:GridView>

            </div>
        </div>
    </form>
</body>
</html>
